<?php
/**
 * @package    JWPBlog
 * @author David Neimeyer davidneimeyer@gmail.com
 * @link http://indie-bookstore.googlecode.com/
 * @license    GNU/GPL v.2
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted Access');
jimport('joomla.application.component.controller');

/**
 * JWPBlog Component Controller
 *
 * @package		JWPBlog
 */
class JWPBlogController extends JController
{
	var $reg;
	var $profiler;
	
	function __construct()
	{
		parent::__construct();
		//$this->profiler =& JProfiler::getInstance( 'Application' );
		$this->reg =& JRegistry::getInstance('mojo');
		//$this->reg->setValue('profiler.handle',$_MOJO_PROFILER);		
		//$this->reg->setValue('config.admin_path',JPATH_SITE.DS.'components'.DS.'com_mojo'.DS.'wp-admin');		
		//$this->registerDefaultTask('display');	
			
	}
		
	function display() {
		require(JPATH_SITE.DS.'/components/com_mojo/wp-blog-header.php');
		
		global $mainframe;
		//require_once($this->reg->getValue('config.admin_path').DS.'admin.php');
		//require_once($this->reg->getValue('config.admin_path').DS.'index.php');
		//$this->getView('default');
				
		parent::display();
	}
	
}
?>